include ../compile.mk

CC=$(PREFIX)gcc
STRIP=$(PREFIX)strip
LIBRARY=../library
CFLAGS+=-I$(LIBRARY)
OBJS=ports.o serial.o

all:	ports

ports: $(OBJS)
	$(CC) $(OBJS) -o $@

serial.o: $(LIBRARY)/serial.c
	$(CC) $(CFLAGS) -c $(LIBRARY)/serial.c

clean:
	rm *.o ports > /dev/null 2>&1

